package com.project.controller;

import com.project.bean.LunBoBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("lunbo")
public class LunboController {
    @RequestMapping("getInfo")
    public List<LunBoBean> getLunboInfo(){
        return List.of(new LunBoBean(1,"http://localhost:8080/lunboImage/1.jpg"),
                new LunBoBean(2,"http://localhost:8080/lunboImage/2.jpg"),
        new LunBoBean(3,"http://localhost:8080/lunboImage/3.jpg"),
        new LunBoBean(4,"http://localhost:8080/lunboImage/4.jpg"),
        new LunBoBean(5,"http://localhost:8080/lunboImage/5.jpg"));
    }
}
